import request from '@/utils/request'

//获取签名
export function getPolicy(param) {
  return request({
    url: '/oss/getPolicy',
    method: 'get',
    params:param
  })
}

//文件上传
export function upload(data) {
  return request({
    url: '/oss/upload',
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data' },
    data: data
  })
}
